package seentao.stdev.mobile.base.vo;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@MappedSuperclass
public abstract class TreeVO extends BaseVO {
	
	private static final long serialVersionUID = 1L;

	/**父ID，顶级为ROOT*/
	@Column(name="pid", length=32)
	private String parentId;

	/**级别，支持9级*/
	@Column(name="level", length=1)
	private Integer level;

	/**完整ID路径，支持9级，ID用“/”分隔*/
	@Column(name="path", length=330)
	private String path;

	/**是否为叶子节点*/
	@Column(name="is_leaf")
	private Boolean leaf;
}
